Skip to main content

Snapchat Marketing

Prerequisites for Configuring Snapchat Marketing Data Source

  1. Set up a Snapchat Business account
  2. Activate Access to the Snapchat Marketing API

Add the OAuth2 App

  • Adding the OAuth2 app requires the redirect_url parameter.
  • If you have the API endpoint that will handle the next OAuth process, write it to this parameter.
  • Save the Client ID and Client Secret.

Obtain a Refresh Token

  1. Open the authorize link in a browser. It will look similar to this:
    https://accounts.snapchat.com/login/oauth2/authorize?response_type=code&client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&scope=snapchat-marketing-api&state=wmKkg0TWgppW8PTBZ20sldUwerf-m
  2. Login & Authorize via UI.
  3. Locate the code query parameter in the redirect.
  4. Exchange the code for an access token and refresh token. Your request will appear similar to the following:
    curl -X POST \
    -d "code={one_time_use_code}" \
    -d "client_id={client_id}" \
    -d "client_secret={client_secret}" \
    -d "grant_type=authorization_code" \
    -d "redirect_uri=redirect_uri" \
    https://accounts.snapchat.com/login/oauth2/access_token
  5. For more information on authenticating into the Snapchat API, read their documentation here. You will receive the API key and refresh token in the response. Use this refresh token for the connector.

Configuring Snapchat Marketing Data Source

  1. Select the Source Type as Snapchat Marketing

  2. Fill in the required details:

  • Client ID, Client Secret, Refresh Token: Enter the credentials obtained from the prerequisites step
  • Start Date: Date in the format YYYY-MM-DD. Any data before this date will not be replicated.
    • Example: 2022-01-01
  • End Date: Date in the format YYYY-MM-DD. Any data after this date will not be replicated.
    • Example: 2022-01-30
Snapchat Configuration
Snapchat Configuration
  1. Click on Test Connection to verify if the connection is established successfully.